﻿@model IEnumerable<core6_website.Models.Student>

@{
    ViewBag.Title = "学生列表";
}

<div class="card-deck">
    @foreach (var student in Model)
    {
        <div class="card m-3">
            <div class="card-header">
                <h3 class="card-title">
                    @student.Name
                </h3>
                <img class="card-img-top" src="~/img/noimg.png" style="height: 50px; width: 50px;"
                     asp-append-version="true"/>

                <div class="card-body text-center">
                    <h5 class="card-title">
                        主修科目： @student.Major
                    </h5>
                </div>

                <div class="card-footer text-center">
                    <a asp-controller="home"
                       asp-action="details"
                       asp-route-id="@student.Id"
                       class="btn btn-primary">查看</a>
                    <a href="#" class="btn btn-primary">编辑</a>
                    <a href="#" class="btn btn-danger">删除</a>
                </div>
            </div>
        </div>
    }
</div>
